package com.dragon.www.smarthome.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.dragon.www.smarthome.R;
import com.dragon.www.smarthome.view.TitleView;

/**
 * Created by liqp on 2016/10/27.
 */
public class LefficeActivity extends Activity{

    private ImageView img_smart;
    private ImageView img_office;
    private ImageView img_store;
    private TitleView titleView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.leffice);
        initView();

        titleView.setTextSetAction(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        img_smart.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(LefficeActivity.this, SmartControlActivity.class);
                startActivity(intent);
            }
        });
        img_office.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        img_store.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }
    public void initView() {
        img_smart = (ImageView) findViewById(R.id.img_smart);
        img_office = (ImageView) findViewById(R.id.img_office);
        img_store = (ImageView) findViewById(R.id.img_store);
        titleView = (TitleView) findViewById(R.id.item_title);
    }
}
